package com.lzq.chatroom_project.dao;

import com.lzq.chatroom_project.model.AddFriendRequest;
import com.lzq.chatroom_project.model.Friend;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface FriendMapper {
    List<Friend> selectFriendList(Integer userId);

    List<Friend> findFriend(Integer selfId, String friendName);

    void addFriendRequest(int fromUserId, int toUserId, String reason);

    List<AddFriendRequest> getFriendRequest(int toUserId);

    void deleteFriendRequest(int fromUserId, int toUserId);

    void addFriend(int friendId, int userId,String friendName,String userName);

    void updateFriendNickname(int friendId, int userId, String friendNickname);
}
